#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int cifang(int n)
{
	int k = 0;
	int ret = 1;
	scanf("%d", &k);
	int i = 1;
	while (i <= k)
	{
		ret = ret * n;
	}
	return ret;
}
int main()
{
	int n = 0;
	scanf("%d",&n );
	int sum = cifang(n);
	printf("%d", sum);
}